css detect if input has value

44

input:not(:placeholder-shown) {
  border-color: green;
}

input:placeholder-shown {
  border-color: red;
}

Comments

Submit
0 Comments